package com.xuecheng.api.contant;

import com.xuecheng.api.contant.model.dto.CourseTeacherDTO;
import com.xuecheng.api.contant.model.vo.CourseTeacherVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Api(value = "课程教师基本信息Api",tags = "课程教师基本信息Api管理")
public interface CourseTeacherApi {

    void removeCourseTeacher(Long id);
    /**
     * 添加课程教师基本信息
     * @param courseTeacherVO 前端传过来的VO实体类数据
     * @return 返回DTO数据给前端
     */
    @ApiOperation(value = "保存课程教师基本信息")
    @ApiImplicitParam(name = "courseTeacherVO",
            value = "课程教师基本视图信息", required = true,
            dataType = "CourseTeacherVO", paramType = "body")
    CourseTeacherDTO createOrModifyCourseTeacher(CourseTeacherVO courseTeacherVO);


    /**
     * 根据Id获取课程教师基本信息
     * @param id 课程基本信息id
     * @return 返回 CourseTeacherDTO
     */
    @ApiOperation(value = "根据Id获取课程教师基本信息")
    List queryCourseTeacher(@PathVariable Long id);
}
